package com.example.demo.service;

import com.example.demo.mapper.CommentMapper;
import com.example.demo.model.Result;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class CommentService {

    private CommentMapper commentMapper;

    public Result getCommentByProductId(Integer productId) {
        return Result.buildSuccess(commentMapper.getCommentByProductId(productId));
    }
}
